import request from '@/utils/request.js'

// 添加商标
export function addBrand(brandDTO) {
    return request.post('/brand/addBrand', brandDTO);
}

// 修改商标
export function updateBrand(brandDTO, brandId) {
    return request.put(`/brand/update/${brandId}`, brandDTO);
}

// 根据时间查询商标
export function getBrandByTime(current, num) {
    return request.get(`/brand/getBrandByTime/${current}/${num}`);
}

// 模糊查询商标
export function getBrandByName(current, num, brandName) {
    return request.get(`/brand/getBrandByName/${current}/${num}`, {params: {brandName}});
}

// 删除商标
export function deleteBrands(brandIdList) {
    return request.delete('/brand/delete', {data: brandIdList});
}